#include<cstdio>
#include<cstdlib>

int main()
{
	while(true)
	{
		system("data.exe > in");
		system("1-BAONI.exe < in > out1");
		system("1.exe < in > out2");
		if(system("fc out1 out2"))
		{
			break;
		}
	}
	return 0;
}
